package day09_zy;

public class Staff extends Employee{
	private String dept ;
	private double salary;// 月薪
	public String getDept() {
		return dept;
	}
	public void setDept(String dept) {
		this.dept = dept;
	}
	public double getSalary() {
		return salary;
	}
	public void setSalary(double salary) {
		this.salary = salary;
	}
	public Staff() {
		super();
	}
	public Staff(String name, int age, String gender,String dept,double salary) {
		super(name, age, gender);
		this.dept = dept;
		this.salary=salary;
				
	}
	@Override
	public String toString() {
		return super.toString()+"Staff [dept=" + dept + ", salary=" + salary + "]";
	}
	
	
}
